package com.financing.platform.dao;

import java.sql.SQLException;
import java.util.List;

import com.financing.platform.dto.MessageJpushDTO;
import com.financing.platform.dto.MessageJpushUserPhoneAliasDTO;

public interface IJpushMessageDao extends IBaseDao{
	
	/**
	 * 查询极光推送消息
	 * @param dto
	 * @return
	 * @throws SQLException
	 */
	 public List<MessageJpushDTO> queryJpushMessageList(MessageJpushDTO dto) throws SQLException;
	 
	 /**
	  * 定时任务查询极光推送消息
	  * @param dto
	  * @return
	  */
	 public List<MessageJpushDTO> queryJpushMessageListForJob(MessageJpushDTO dto) ;
	 
	 /**
	  * 添加极光推送消息
	  * @param dto
	  * @return
	  * @throws SQLException
	  */
	 public int addJpushMessage(MessageJpushDTO dto) throws SQLException;
	 
	 /**
	  * 更新极光推送消息
	  * @param dto
	  * @return
	  * @throws SQLException
	  */
	 public int updateJpushMessage(MessageJpushDTO dto) throws SQLException;
	 
	 /**
	  * 极光推送消息总条数
	  * @param dto
	  * @return
	  * @throws SQLException
	  */
	 public int queryMessageJpushCount(MessageJpushDTO dto) throws SQLException;
	 /**
	  * 极光推送 根据faid查询设备标示
	  * @param faId
	  * @return
	  */
	 public List<MessageJpushUserPhoneAliasDTO> queryJpushUserPhonealias(String faId) throws SQLException;
}
